import config from "@/config"
import http from "@/utils/request"

export default {
	token: {
		url: `${config.API_URL}/v1/mock/token`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	user:{
		list:{
			url: `${config.API_URL}/v1/user/list`,
			name: "用户列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	}
}
